<%@ page language="java"  pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>软件著作权列表</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
    <link rel="stylesheet" href="../../css/vip.css" type="text/css">
    <SCRIPT language=JavaScript src="../../js/jquery.js"></SCRIPT>
  <SCRIPT language=JavaScript src="../../js/FoshanRen.js"></SCRIPT>
  <link rel="stylesheet" type="text/css" href="../../js/extjs/resources/css/ext-all.css"/>
<script type="text/javascript" charset="utf-8" src="../../js/extjs/adapter/ext/ext-base.js"></script>
<script type="text/javascript" charset="utf-8" src="../../js/extjs/ext-all.js"></script>
  <script language="JavaScript">
	function topage(page){
	var s="<s:url action='softwareCopyright_query' namespace='/admin/SoftwareCopyrightAction'/>?softwareCopyrightQuery.acceptNo=<s:property value='softwareCopyrightQuery.acceptNo'/>"
	+"&softwareCopyrightQuery.softwareName=<s:property value='softwareCopyrightQuery.softwareName'/>"
	+"&softwareCopyrightQuery.copyrightOwner=<s:property value='softwareCopyrightQuery.copyrightOwner'/>"
	+"&softwareCopyrightQuery.registerNo=<s:property value='softwareCopyrightQuery.registerNo'/>"
	+"&softwareCopyrightQuery.state=<s:property value='softwareCopyrightQuery.state'/>"
	+"&page="+page;
	javascript:window.location.href=s;
	}
	function deleteItem(id){
	 if(confirm("你确定要删除")){
	    $.get("softwareCopyrightManage_delete.action?softwareCopyright.id="+id,
	    function(data){
	    $("#"+id).remove();
	    alert(data);
	    });
      }
    }
  </script>


<!-- listProject中此位置的test函数删除了 -->


  </head>
  
  <body>
   <s:form action="softwareCopyright_query" namespace="/admin/SoftwareCopyrightAction" method="post">

 <table width="98%" border="0" cellspacing="1" cellpadding="3" align="center">
    <tr bgcolor="6f8ac4"> 
       <td colspan="6" ><font color="#FFFFFF">查询软件著作权（请选择其中的一个或多个条件进行查询）：</font></td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td> <div align="right">申请编号  ：</div></td>
      <td ><s:textfield name="softwareCopyrightQuery.acceptNo" size="20" maxlength="40"/></td>
      <td> <div align="right">著作权名称：</div></td>
      <td colspan="3"><s:textfield name="softwareCopyrightQuery.softwareName" size="20" maxlength="20"/></td>
    </tr>
     <tr bgcolor="f5f5f5"> 
      <td> <div align="right">注册编号 ：</div></td>
      <td><s:textfield name="softwareCopyrightQuery.registerNo" size="20" maxlength="40"/></td>   
    
      <td> <div align="right">所有人 ：</div></td>
      <td><s:textfield name="softwareCopyrightQuery.copyrightOwner" size="20" maxlength="20"/></td>
        
      <td> <div align="right">状态  ：</div></td>
      <td> 
      <s:select name="softwareCopyrightQuery.state" list="#{'已受理':'已受理','已授权':'已授权'}" headerValue="---请选择软著状态---" headerKey="">
      </s:select>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td colspan="6"> <div align="center"> 
          <input type="submit" name="edit" value=" 确 认 " class="frm_btn">
          &nbsp;&nbsp;<input type="button" name="Button" value=" 返 回 " class="frm_btn" onclick="javascript:history.back()">
        </div></td>
    </tr>
  </table>
</s:form>
<br>
  <table width="98%" border="0" cellspacing="1" cellpadding="2" align="center">
    <tr ><td colspan="10"  bgcolor="6f8ac4" align="right">
    	<%@ include file="/WEB-INF/page/shared/fenye.jsp" %>
   </td></tr>
    <tr>
      <td width="7%" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">著作权申请编号</font></div></td>
      <td width="20%" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">著作权名称</font></div></td>
	  <td width="12%" nowrap bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">所有者</font></div></td>
	  <td width="7%" bgcolor="6f8ac4"><div align="center"><font color="#FFFFFF">注册编号</font></div></td>
	  <td width="6%" bgcolor="6f8ac4"><div align="center"><font color="#FFFFFF">登记日期</font></div></td>
      <td width="6%" bgcolor="6f8ac4"><div align="center"><font color="#FFFFFF">状态</font></div></td>
       <td width="6%" bgcolor="6f8ac4"><div align="center"><font color="#FFFFFF">详细信息查询</font></div></td>
      <td width="5%" nowrap bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">修改</font></div></td>
      <td width="5%" nowrap bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">删除</font></div></td>
    </tr>
    <s:iterator value="#pageView.records">
    <tr id="<s:property value='id'/>">
      <td bgcolor="f5f5f5"> <div align="center"><s:property value="acceptNo"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:property value="softwareName"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:property value="copyrightOwner"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:property value="registerNo"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:date name="registerDate" nice="false" format="yyyy-MM-dd"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:property value="state"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><a href='<s:url action="softwareCopyrightManage_detailQuery" namespace="/admin/SoftwareCopyrightAction"><s:param name="softwareCopyright.id" value="%{id}"></s:param></s:url>'>详细信息</a></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><a href='<s:url action="softwareCopyrightManage_edit" namespace="/admin/SoftwareCopyrightAction"><s:param name="softwareCopyright.id" value="%{id}"></s:param></s:url>'>
	  <img src="../../images/edit.gif" width="15" height="16" border="0"></a></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><input type="button" class="frm_btn" value="删除" onClick="deleteItem(<s:property value='id'/>)"/></div></td> 
	</tr>
    </s:iterator>
  </table>
  </body>
</html>
